<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE BangPatterns #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE MagicHash #-}</span><span>
</span><span id="line-3"></span><span class="hs-pragma">{-# LANGUAGE UnboxedTuples #-}</span><span>
</span><span id="line-4"></span><span class="hs-pragma">{-# LANGUAGE CPP #-}</span><span>
</span><span id="line-5"></span><span class="hs-pragma">{-# LANGUAGE NoImplicitPrelude #-}</span><span>
</span><span id="line-6"></span><span class="hs-pragma">{-# LANGUAGE PatternSynonyms #-}</span><span>
</span><span id="line-7"></span><span class="hs-pragma">{-# LANGUAGE ViewPatterns #-}</span><span>
</span><span id="line-8"></span><span class="hs-pragma">{-# LANGUAGE BlockArguments #-}</span><span class="hs-cpp">

#include &quot;MachDeps.h&quot;
</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- Module      :  GHC.Integer.GMP.Internals</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- Copyright   :  (c) Herbert Valerio Riedel 2014</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- License     :  BSD3</span><span>
</span><span id="line-16"></span><span class="hs-comment">--</span><span>
</span><span id="line-17"></span><span class="hs-comment">-- Maintainer  :  ghc-devs@haskell.org</span><span>
</span><span id="line-18"></span><span class="hs-comment">-- Stability   :  provisional</span><span>
</span><span id="line-19"></span><span class="hs-comment">-- Portability :  non-portable (GHC Extensions)</span><span>
</span><span id="line-20"></span><span class="hs-comment">--</span><span>
</span><span id="line-21"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Integer.GMP.Internals</span><span>
</span><span id="line-22"></span><span>    </span><span class="hs-special">(</span><span> </span><span class="annot"><span class="hs-comment">-- * The 'Integer' type</span></span><span>
</span><span id="line-23"></span><span>      </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier">Integer</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#S%23"><span class="hs-identifier">S#</span></a></span><span class="hs-special">,</span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#Jn%23"><span class="hs-identifier">Jn#</span></a></span><span class="hs-special">,</span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#Jp%23"><span class="hs-identifier">Jp#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-24"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#isValidInteger%23"><span class="hs-identifier">isValidInteger#</span></a></span><span>
</span><span id="line-25"></span><span>
</span><span id="line-26"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** Basic 'Integer' operations</span></span><span>
</span><span id="line-27"></span><span>
</span><span id="line-28"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="../../base/src/GHC.Integer.html#"><span class="hs-identifier">GHC.Integer</span></a></span><span>
</span><span id="line-29"></span><span>
</span><span id="line-30"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** Additional 'Integer' operations</span></span><span>
</span><span id="line-31"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gcdInteger"><span class="hs-identifier">gcdInteger</span></a></span><span>
</span><span id="line-32"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gcdExtInteger"><span class="hs-identifier">gcdExtInteger</span></a></span><span>
</span><span id="line-33"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#lcmInteger"><span class="hs-identifier">lcmInteger</span></a></span><span>
</span><span id="line-34"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sqrInteger"><span class="hs-identifier">sqrInteger</span></a></span><span>
</span><span id="line-35"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#powModInteger"><span class="hs-identifier">powModInteger</span></a></span><span>
</span><span id="line-36"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#recipModInteger"><span class="hs-identifier">recipModInteger</span></a></span><span>
</span><span id="line-37"></span><span>
</span><span id="line-38"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** Additional conversion operations to 'Integer'</span></span><span>
</span><span id="line-39"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#wordToNegInteger"><span class="hs-identifier">wordToNegInteger</span></a></span><span>
</span><span id="line-40"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bigNatToInteger"><span class="hs-identifier">bigNatToInteger</span></a></span><span>
</span><span id="line-41"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bigNatToNegInteger"><span class="hs-identifier">bigNatToNegInteger</span></a></span><span>
</span><span id="line-42"></span><span>
</span><span id="line-43"></span><span>      </span><span class="annot"><span class="hs-comment">-- * The 'BigNat' type</span></span><span>
</span><span id="line-44"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier">BigNat</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-45"></span><span>
</span><span id="line-46"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb"><span class="hs-identifier">GmpLimb</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier">GmpLimb#</span></a></span><span>
</span><span id="line-47"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpSize"><span class="hs-identifier">GmpSize</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpSize%23"><span class="hs-identifier">GmpSize#</span></a></span><span>
</span><span id="line-48"></span><span>
</span><span id="line-49"></span><span>      </span><span class="annot"><span class="hs-comment">-- **</span></span><span>
</span><span id="line-50"></span><span>
</span><span id="line-51"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#isValidBigNat%23"><span class="hs-identifier">isValidBigNat#</span></a></span><span>
</span><span id="line-52"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sizeofBigNat%23"><span class="hs-identifier">sizeofBigNat#</span></a></span><span>
</span><span id="line-53"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#zeroBigNat"><span class="hs-identifier">zeroBigNat</span></a></span><span>
</span><span id="line-54"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#oneBigNat"><span class="hs-identifier">oneBigNat</span></a></span><span>
</span><span id="line-55"></span><span>
</span><span id="line-56"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** Conversions to/from 'BigNat'</span></span><span>
</span><span id="line-57"></span><span>
</span><span id="line-58"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#byteArrayToBigNat%23"><span class="hs-identifier">byteArrayToBigNat#</span></a></span><span>
</span><span id="line-59"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#wordToBigNat"><span class="hs-identifier">wordToBigNat</span></a></span><span>
</span><span id="line-60"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#wordToBigNat2"><span class="hs-identifier">wordToBigNat2</span></a></span><span>
</span><span id="line-61"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bigNatToInt"><span class="hs-identifier">bigNatToInt</span></a></span><span>
</span><span id="line-62"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bigNatToWord"><span class="hs-identifier">bigNatToWord</span></a></span><span>
</span><span id="line-63"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#indexBigNat%23"><span class="hs-identifier">indexBigNat#</span></a></span><span>
</span><span id="line-64"></span><span>
</span><span id="line-65"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** 'BigNat' arithmetic operations</span></span><span>
</span><span id="line-66"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#plusBigNat"><span class="hs-identifier">plusBigNat</span></a></span><span>
</span><span id="line-67"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#plusBigNatWord"><span class="hs-identifier">plusBigNatWord</span></a></span><span>
</span><span id="line-68"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#minusBigNat"><span class="hs-identifier">minusBigNat</span></a></span><span>
</span><span id="line-69"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#minusBigNatWord"><span class="hs-identifier">minusBigNatWord</span></a></span><span>
</span><span id="line-70"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#timesBigNat"><span class="hs-identifier">timesBigNat</span></a></span><span>
</span><span id="line-71"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#timesBigNatWord"><span class="hs-identifier">timesBigNatWord</span></a></span><span>
</span><span id="line-72"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sqrBigNat"><span class="hs-identifier">sqrBigNat</span></a></span><span>
</span><span id="line-73"></span><span>
</span><span id="line-74"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#quotRemBigNat"><span class="hs-identifier">quotRemBigNat</span></a></span><span>
</span><span id="line-75"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#quotRemBigNatWord"><span class="hs-identifier">quotRemBigNatWord</span></a></span><span>
</span><span id="line-76"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#quotBigNatWord"><span class="hs-identifier">quotBigNatWord</span></a></span><span>
</span><span id="line-77"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#quotBigNat"><span class="hs-identifier">quotBigNat</span></a></span><span>
</span><span id="line-78"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#remBigNat"><span class="hs-identifier">remBigNat</span></a></span><span>
</span><span id="line-79"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#remBigNatWord"><span class="hs-identifier">remBigNatWord</span></a></span><span>
</span><span id="line-80"></span><span>
</span><span id="line-81"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gcdBigNat"><span class="hs-identifier">gcdBigNat</span></a></span><span>
</span><span id="line-82"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gcdBigNatWord"><span class="hs-identifier">gcdBigNatWord</span></a></span><span>
</span><span id="line-83"></span><span>
</span><span id="line-84"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** 'BigNat' logic operations</span></span><span>
</span><span id="line-85"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#shiftRBigNat"><span class="hs-identifier">shiftRBigNat</span></a></span><span>
</span><span id="line-86"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#shiftLBigNat"><span class="hs-identifier">shiftLBigNat</span></a></span><span>
</span><span id="line-87"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#testBitBigNat"><span class="hs-identifier">testBitBigNat</span></a></span><span>
</span><span id="line-88"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#clearBitBigNat"><span class="hs-identifier">clearBitBigNat</span></a></span><span>
</span><span id="line-89"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#complementBitBigNat"><span class="hs-identifier">complementBitBigNat</span></a></span><span>
</span><span id="line-90"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#setBitBigNat"><span class="hs-identifier">setBitBigNat</span></a></span><span>
</span><span id="line-91"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#andBigNat"><span class="hs-identifier">andBigNat</span></a></span><span>
</span><span id="line-92"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#xorBigNat"><span class="hs-identifier">xorBigNat</span></a></span><span>
</span><span id="line-93"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#popCountBigNat"><span class="hs-identifier">popCountBigNat</span></a></span><span>
</span><span id="line-94"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#orBigNat"><span class="hs-identifier">orBigNat</span></a></span><span>
</span><span id="line-95"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bitBigNat"><span class="hs-identifier">bitBigNat</span></a></span><span>
</span><span id="line-96"></span><span>
</span><span id="line-97"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** 'BigNat' comparison predicates</span></span><span>
</span><span id="line-98"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#isZeroBigNat"><span class="hs-identifier">isZeroBigNat</span></a></span><span>
</span><span id="line-99"></span><span>
</span><span id="line-100"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#compareBigNatWord"><span class="hs-identifier">compareBigNatWord</span></a></span><span>
</span><span id="line-101"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#compareBigNat"><span class="hs-identifier">compareBigNat</span></a></span><span>
</span><span id="line-102"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#eqBigNatWord"><span class="hs-identifier">eqBigNatWord</span></a></span><span>
</span><span id="line-103"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#eqBigNatWord%23"><span class="hs-identifier">eqBigNatWord#</span></a></span><span>
</span><span id="line-104"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#eqBigNat"><span class="hs-identifier">eqBigNat</span></a></span><span>
</span><span id="line-105"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#eqBigNat%23"><span class="hs-identifier">eqBigNat#</span></a></span><span>
</span><span id="line-106"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gtBigNatWord%23"><span class="hs-identifier">gtBigNatWord#</span></a></span><span>
</span><span id="line-107"></span><span>
</span><span id="line-108"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Import/export functions</span></span><span>
</span><span id="line-109"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** Compute size of serialisation</span></span><span>
</span><span id="line-110"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sizeInBaseBigNat"><span class="hs-identifier">sizeInBaseBigNat</span></a></span><span>
</span><span id="line-111"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sizeInBaseInteger"><span class="hs-identifier">sizeInBaseInteger</span></a></span><span>
</span><span id="line-112"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sizeInBaseWord%23"><span class="hs-identifier">sizeInBaseWord#</span></a></span><span>
</span><span id="line-113"></span><span>
</span><span id="line-114"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** Export</span></span><span>
</span><span id="line-115"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#exportBigNatToAddr"><span class="hs-identifier">exportBigNatToAddr</span></a></span><span>
</span><span id="line-116"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#exportIntegerToAddr"><span class="hs-identifier">exportIntegerToAddr</span></a></span><span>
</span><span id="line-117"></span><span>
</span><span id="line-118"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#exportBigNatToMutableByteArray"><span class="hs-identifier">exportBigNatToMutableByteArray</span></a></span><span>
</span><span id="line-119"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#exportIntegerToMutableByteArray"><span class="hs-identifier">exportIntegerToMutableByteArray</span></a></span><span>
</span><span id="line-120"></span><span>
</span><span id="line-121"></span><span>      </span><span class="annot"><span class="hs-comment">-- ** Import</span></span><span>
</span><span id="line-122"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#importBigNatFromAddr"><span class="hs-identifier">importBigNatFromAddr</span></a></span><span>
</span><span id="line-123"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#importIntegerFromAddr"><span class="hs-identifier">importIntegerFromAddr</span></a></span><span>
</span><span id="line-124"></span><span>
</span><span id="line-125"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#importBigNatFromByteArray"><span class="hs-identifier">importBigNatFromByteArray</span></a></span><span>
</span><span id="line-126"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#importIntegerFromByteArray"><span class="hs-identifier">importIntegerFromByteArray</span></a></span><span>
</span><span id="line-127"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-128"></span><span>
</span><span id="line-129"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/GHC.Integer.html#"><span class="hs-identifier">GHC.Integer</span></a></span><span>
</span><span id="line-130"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/GHC.Natural.html#"><span class="hs-identifier">GHC.Natural</span></a></span><span>
</span><span id="line-131"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#"><span class="hs-identifier">GHC.Num.Integer</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier">Integer</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-132"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#"><span class="hs-identifier">GHC.Num.Integer</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">I</span></span><span>
</span><span id="line-133"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#"><span class="hs-identifier">GHC.Num.BigNat</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">B</span></span><span>
</span><span id="line-134"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Primitives.html#"><span class="hs-identifier">GHC.Num.Primitives</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">P</span></span><span>
</span><span id="line-135"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#"><span class="hs-identifier">GHC.Types</span></a></span><span>
</span><span id="line-136"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#"><span class="hs-identifier">GHC.Prim</span></a></span><span>
</span><span id="line-137"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/GHC.Exts.html#"><span class="hs-identifier">GHC.Exts</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Magic.html#runRW%23"><span class="hs-identifier">runRW#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-138"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Control.Exception.html#"><span class="hs-identifier">Control.Exception</span></a></span><span>
</span><span id="line-139"></span><span>
</span><span id="line-140"></span><span class="hs-pragma">{-# COMPLETE</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#S%23"><span class="hs-pragma hs-type">S#</span></a></span><span class="hs-pragma">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#Jp%23"><span class="hs-pragma hs-type">Jp#</span></a></span><span class="hs-pragma">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#Jn%23"><span class="hs-pragma hs-type">Jn#</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-141"></span><span>
</span><span id="line-142"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">S#</span><span> </span><span class="hs-pragma">&quot;Use IS constructor instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-143"></span><span class="hs-keyword">pattern</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#S%23"><span class="hs-identifier hs-type">S#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-144"></span><span class="hs-keyword">pattern</span><span> </span><span id="%24mS%23"><span id="%24bS%23"><span id="S%23"><span class="annot"><span class="annottext">$mS# :: forall {r}. Integer -&gt; (Int# -&gt; r) -&gt; (Void# -&gt; r) -&gt; r
$bS# :: Int# -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#%24mS%23"><span class="hs-identifier hs-var hs-var hs-var">S#</span></a></span></span></span></span><span> </span><span class="annot"><a href="#local-6989586621679028319"><span class="hs-identifier hs-type">i</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IS"><span class="hs-identifier hs-type">IS</span></a></span><span> </span><span id="local-6989586621679028319"><span class="annot"><a href="#local-6989586621679028319"><span class="hs-identifier hs-var">i</span></a></span></span><span>
</span><span id="line-145"></span><span>
</span><span id="line-146"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#fromBN%23"><span class="hs-identifier hs-type">fromBN#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#ByteArray%23"><span class="hs-identifier hs-type">ByteArray#</span></a></span><span>
</span><span id="line-147"></span><span id="fromBN%23"><span class="annot"><span class="annottext">fromBN# :: BigNat -&gt; ByteArray#
</span><a href="GHC.Integer.GMP.Internals.html#fromBN%23"><span class="hs-identifier hs-var hs-var">fromBN#</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028316"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028316"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028316"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-148"></span><span>
</span><span id="line-149"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#fromIP"><span class="hs-identifier hs-type">fromIP</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-150"></span><span id="fromIP"><span class="annot"><span class="annottext">fromIP :: Integer -&gt; (# () | BigNat #)
</span><a href="GHC.Integer.GMP.Internals.html#fromIP"><span class="hs-identifier hs-var hs-var">fromIP</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IP"><span class="hs-identifier hs-type">IP</span></a></span><span> </span><span id="local-6989586621679028314"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028314"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028314"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-151"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#fromIP"><span class="hs-identifier hs-var">fromIP</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-identifier">_</span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-152"></span><span>
</span><span id="line-153"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#fromIN"><span class="hs-identifier hs-type">fromIN</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-154"></span><span id="fromIN"><span class="annot"><span class="annottext">fromIN :: Integer -&gt; (# () | BigNat #)
</span><a href="GHC.Integer.GMP.Internals.html#fromIN"><span class="hs-identifier hs-var hs-var">fromIN</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IN"><span class="hs-identifier hs-type">IN</span></a></span><span> </span><span id="local-6989586621679028312"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028312"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028312"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-155"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#fromIN"><span class="hs-identifier hs-var">fromIN</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-identifier">_</span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-156"></span><span>
</span><span id="line-157"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">Jp#</span><span> </span><span class="hs-pragma">&quot;Use IP constructor instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-158"></span><span class="hs-keyword">pattern</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#Jp%23"><span class="hs-identifier hs-type">Jp#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-159"></span><span class="hs-keyword">pattern</span><span> </span><span id="%24mJp%23"><span id="%24bJp%23"><span id="Jp%23"><span class="annot"><span class="annottext">$mJp# :: forall {r}. Integer -&gt; (BigNat -&gt; r) -&gt; (Void# -&gt; r) -&gt; r
$bJp# :: BigNat -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#%24mJp%23"><span class="hs-identifier hs-var hs-var hs-var hs-var">Jp#</span></a></span></span></span></span><span> </span><span class="annot"><a href="#local-6989586621679028309"><span class="hs-identifier hs-type">i</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#fromIP"><span class="hs-identifier hs-type">fromIP</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621679028309"><span class="annot"><a href="#local-6989586621679028309"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-special">#)</span><span class="hs-special">)</span><span>
</span><span id="line-160"></span><span>   </span><span class="hs-keyword">where</span><span>
</span><span id="line-161"></span><span>      </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#Jp%23"><span class="hs-identifier hs-var">Jp#</span></a></span><span> </span><span id="local-6989586621679028308"><span class="annot"><span class="annottext">BigNat
</span><a href="#local-6989586621679028308"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IP"><span class="hs-identifier hs-var">IP</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">BigNat -&gt; ByteArray#
</span><a href="GHC.Integer.GMP.Internals.html#fromBN%23"><span class="hs-identifier hs-var">fromBN#</span></a></span><span> </span><span class="annot"><span class="annottext">BigNat
</span><a href="#local-6989586621679028308"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-162"></span><span>
</span><span id="line-163"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">Jn#</span><span> </span><span class="hs-pragma">&quot;Use IN constructor instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-164"></span><span class="hs-keyword">pattern</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#Jn%23"><span class="hs-identifier hs-type">Jn#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-165"></span><span class="hs-keyword">pattern</span><span> </span><span id="%24mJn%23"><span id="%24bJn%23"><span id="Jn%23"><span class="annot"><span class="annottext">$mJn# :: forall {r}. Integer -&gt; (BigNat -&gt; r) -&gt; (Void# -&gt; r) -&gt; r
$bJn# :: BigNat -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#%24mJn%23"><span class="hs-identifier hs-var hs-var hs-var hs-var">Jn#</span></a></span></span></span></span><span> </span><span class="annot"><a href="#local-6989586621679028305"><span class="hs-identifier hs-type">i</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#fromIN"><span class="hs-identifier hs-type">fromIN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621679028305"><span class="annot"><a href="#local-6989586621679028305"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-special">#)</span><span class="hs-special">)</span><span>
</span><span id="line-166"></span><span>   </span><span class="hs-keyword">where</span><span>
</span><span id="line-167"></span><span>      </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#Jn%23"><span class="hs-identifier hs-var">Jn#</span></a></span><span> </span><span id="local-6989586621679028304"><span class="annot"><span class="annottext">BigNat
</span><a href="#local-6989586621679028304"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IN"><span class="hs-identifier hs-var">IN</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">BigNat -&gt; ByteArray#
</span><a href="GHC.Integer.GMP.Internals.html#fromBN%23"><span class="hs-identifier hs-var">fromBN#</span></a></span><span> </span><span class="annot"><span class="annottext">BigNat
</span><a href="#local-6989586621679028304"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-168"></span><span>
</span><span id="line-169"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">isValidInteger#</span><span> </span><span class="hs-pragma">&quot;Use integerCheck# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-170"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#isValidInteger%23"><span class="hs-identifier hs-type">isValidInteger#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span>
</span><span id="line-171"></span><span id="isValidInteger%23"><span class="annot"><span class="annottext">isValidInteger# :: Integer -&gt; Int#
</span><a href="GHC.Integer.GMP.Internals.html#isValidInteger%23"><span class="hs-identifier hs-var hs-var">isValidInteger#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerCheck%23"><span class="hs-identifier hs-var">I.integerCheck#</span></a></span><span>
</span><span id="line-172"></span><span>
</span><span id="line-173"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">gcdInteger</span><span> </span><span class="hs-pragma">&quot;Use integerGcd instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-174"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gcdInteger"><span class="hs-identifier hs-type">gcdInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-175"></span><span id="gcdInteger"><span class="annot"><span class="annottext">gcdInteger :: Integer -&gt; Integer -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#gcdInteger"><span class="hs-identifier hs-var hs-var">gcdInteger</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerGcd"><span class="hs-identifier hs-var">I.integerGcd</span></a></span><span>
</span><span id="line-176"></span><span>
</span><span id="line-177"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">gcdExtInteger</span><span> </span><span class="hs-pragma">&quot;Use integerGcde instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-178"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gcdExtInteger"><span class="hs-identifier hs-type">gcdExtInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-179"></span><span id="gcdExtInteger"><span class="annot"><span class="annottext">gcdExtInteger :: Integer -&gt; Integer -&gt; (# Integer, Integer #)
</span><a href="GHC.Integer.GMP.Internals.html#gcdExtInteger"><span class="hs-identifier hs-var hs-var">gcdExtInteger</span></a></span></span><span> </span><span id="local-6989586621679028302"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028302"><span class="hs-identifier hs-var">a</span></a></span></span><span> </span><span id="local-6989586621679028301"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028301"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; (# Integer, Integer, Integer #)
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerGcde%23"><span class="hs-identifier hs-var">I.integerGcde#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028302"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028301"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-180"></span><span>   </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028299"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028299"><span class="hs-identifier hs-var">g</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028298"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028298"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028297"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028297"><span class="hs-identifier hs-var">_t</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028299"><span class="hs-identifier hs-var">g</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028298"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-181"></span><span>
</span><span id="line-182"></span><span>
</span><span id="line-183"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">lcmInteger</span><span> </span><span class="hs-pragma">&quot;Use integerLcm instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-184"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#lcmInteger"><span class="hs-identifier hs-type">lcmInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-185"></span><span id="lcmInteger"><span class="annot"><span class="annottext">lcmInteger :: Integer -&gt; Integer -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#lcmInteger"><span class="hs-identifier hs-var hs-var">lcmInteger</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerLcm"><span class="hs-identifier hs-var">I.integerLcm</span></a></span><span>
</span><span id="line-186"></span><span>
</span><span id="line-187"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">sqrInteger</span><span> </span><span class="hs-pragma">&quot;Use integerSqr instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-188"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sqrInteger"><span class="hs-identifier hs-type">sqrInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-189"></span><span id="sqrInteger"><span class="annot"><span class="annottext">sqrInteger :: Integer -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#sqrInteger"><span class="hs-identifier hs-var hs-var">sqrInteger</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerSqr"><span class="hs-identifier hs-var">I.integerSqr</span></a></span><span>
</span><span id="line-190"></span><span>
</span><span id="line-191"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">recipModInteger</span><span> </span><span class="hs-pragma">&quot;Use integerRecipMod# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-192"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#recipModInteger"><span class="hs-identifier hs-type">recipModInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-193"></span><span id="recipModInteger"><span class="annot"><span class="annottext">recipModInteger :: Integer -&gt; Integer -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#recipModInteger"><span class="hs-identifier hs-var hs-var">recipModInteger</span></a></span></span><span> </span><span id="local-6989586621679028295"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028295"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621679028294"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028294"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Natural -&gt; (# Natural | () #)
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerRecipMod%23"><span class="hs-identifier hs-var">I.integerRecipMod#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028295"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Natural
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerToNatural"><span class="hs-identifier hs-var">I.integerToNatural</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028294"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-194"></span><span>   </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028292"><span class="annot"><span class="annottext">Natural
</span><a href="#local-6989586621679028292"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">|</span><span>    </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Natural -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerFromNatural"><span class="hs-identifier hs-var">I.integerFromNatural</span></a></span><span> </span><span class="annot"><span class="annottext">Natural
</span><a href="#local-6989586621679028292"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-195"></span><span>   </span><span class="hs-special">(#</span><span>   </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">0</span></span><span>
</span><span id="line-196"></span><span>
</span><span id="line-197"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">powModInteger</span><span> </span><span class="hs-pragma">&quot;Use integerPowMod# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-198"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#powModInteger"><span class="hs-identifier hs-type">powModInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-199"></span><span id="powModInteger"><span class="annot"><span class="annottext">powModInteger :: Integer -&gt; Integer -&gt; Integer -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#powModInteger"><span class="hs-identifier hs-var hs-var">powModInteger</span></a></span></span><span> </span><span id="local-6989586621679028291"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028291"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span id="local-6989586621679028290"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028290"><span class="hs-identifier hs-var">e</span></a></span></span><span> </span><span id="local-6989586621679028289"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028289"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Natural -&gt; (# Natural | () #)
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerPowMod%23"><span class="hs-identifier hs-var">I.integerPowMod#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028291"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028290"><span class="hs-identifier hs-var">e</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Natural
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerToNatural"><span class="hs-identifier hs-var">I.integerToNatural</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028289"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-200"></span><span>   </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028287"><span class="annot"><span class="annottext">Natural
</span><a href="#local-6989586621679028287"><span class="hs-identifier hs-var">r</span></a></span></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Natural -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerFromNatural"><span class="hs-identifier hs-var">I.integerFromNatural</span></a></span><span> </span><span class="annot"><span class="annottext">Natural
</span><a href="#local-6989586621679028287"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-201"></span><span>   </span><span class="hs-special">(#</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">0</span></span><span>
</span><span id="line-202"></span><span>
</span><span id="line-203"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">wordToNegInteger</span><span> </span><span class="hs-pragma">&quot;Use integerFromWordNeg# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-204"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#wordToNegInteger"><span class="hs-identifier hs-type">wordToNegInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-205"></span><span id="wordToNegInteger"><span class="annot"><span class="annottext">wordToNegInteger :: Word# -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#wordToNegInteger"><span class="hs-identifier hs-var hs-var">wordToNegInteger</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerFromWordNeg%23"><span class="hs-identifier hs-var">I.integerFromWordNeg#</span></a></span><span>
</span><span id="line-206"></span><span>
</span><span id="line-207"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">bigNatToInteger</span><span> </span><span class="hs-pragma">&quot;Use integerFromBigNat# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-208"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bigNatToInteger"><span class="hs-identifier hs-type">bigNatToInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-209"></span><span id="bigNatToInteger"><span class="annot"><span class="annottext">bigNatToInteger :: BigNat -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#bigNatToInteger"><span class="hs-identifier hs-var hs-var">bigNatToInteger</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028285"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028285"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerFromBigNat%23"><span class="hs-identifier hs-var">I.integerFromBigNat#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028285"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-210"></span><span>
</span><span id="line-211"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">bigNatToNegInteger</span><span> </span><span class="hs-pragma">&quot;Use integerFromBigNatNeg# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-212"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bigNatToNegInteger"><span class="hs-identifier hs-type">bigNatToNegInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-213"></span><span id="bigNatToNegInteger"><span class="annot"><span class="annottext">bigNatToNegInteger :: BigNat -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#bigNatToNegInteger"><span class="hs-identifier hs-var hs-var">bigNatToNegInteger</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028283"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028283"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerFromBigNatNeg%23"><span class="hs-identifier hs-var">I.integerFromBigNatNeg#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028283"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-214"></span><span>
</span><span id="line-215"></span><span class="hs-keyword">type</span><span> </span><span id="GmpLimb"><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb"><span class="hs-identifier hs-var">GmpLimb</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span>
</span><span id="line-216"></span><span class="hs-keyword">type</span><span> </span><span id="GmpLimb%23"><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-var">GmpLimb#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-217"></span><span class="hs-keyword">type</span><span> </span><span id="GmpSize"><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpSize"><span class="hs-identifier hs-var">GmpSize</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span>
</span><span id="line-218"></span><span class="hs-keyword">type</span><span> </span><span id="GmpSize%23"><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpSize%23"><span class="hs-identifier hs-var">GmpSize#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span>
</span><span id="line-219"></span><span>
</span><span id="line-220"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">sizeofBigNat#</span><span> </span><span class="hs-pragma">&quot;Use bigNatSize# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-221"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sizeofBigNat%23"><span class="hs-identifier hs-type">sizeofBigNat#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpSize%23"><span class="hs-identifier hs-type">GmpSize#</span></a></span><span>
</span><span id="line-222"></span><span id="sizeofBigNat%23"><span class="annot"><span class="annottext">sizeofBigNat# :: BigNat -&gt; Int#
</span><a href="GHC.Integer.GMP.Internals.html#sizeofBigNat%23"><span class="hs-identifier hs-var hs-var">sizeofBigNat#</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028281"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028281"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatSize%23"><span class="hs-identifier hs-var">B.bigNatSize#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028281"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-223"></span><span>
</span><span id="line-224"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">isValidBigNat#</span><span> </span><span class="hs-pragma">&quot;Use bigNatCheck# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-225"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#isValidBigNat%23"><span class="hs-identifier hs-type">isValidBigNat#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span>
</span><span id="line-226"></span><span id="isValidBigNat%23"><span class="annot"><span class="annottext">isValidBigNat# :: BigNat -&gt; Int#
</span><a href="GHC.Integer.GMP.Internals.html#isValidBigNat%23"><span class="hs-identifier hs-var hs-var">isValidBigNat#</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028279"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028279"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatCheck%23"><span class="hs-identifier hs-var">B.bigNatCheck#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028279"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-227"></span><span>
</span><span id="line-228"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">zeroBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatZero instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-229"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#zeroBigNat"><span class="hs-identifier hs-type">zeroBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-230"></span><span id="zeroBigNat"><span class="annot"><span class="annottext">zeroBigNat :: BigNat
</span><a href="GHC.Integer.GMP.Internals.html#zeroBigNat"><span class="hs-identifier hs-var hs-var">zeroBigNat</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatZero"><span class="hs-identifier hs-var">B.bigNatZero</span></a></span><span>
</span><span id="line-231"></span><span>
</span><span id="line-232"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">oneBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatOne instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-233"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#oneBigNat"><span class="hs-identifier hs-type">oneBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-234"></span><span id="oneBigNat"><span class="annot"><span class="annottext">oneBigNat :: BigNat
</span><a href="GHC.Integer.GMP.Internals.html#oneBigNat"><span class="hs-identifier hs-var hs-var">oneBigNat</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatOne"><span class="hs-identifier hs-var">B.bigNatOne</span></a></span><span>
</span><span id="line-235"></span><span>
</span><span id="line-236"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">plusBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatAdd instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-237"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#plusBigNat"><span class="hs-identifier hs-type">plusBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-238"></span><span id="plusBigNat"><span class="annot"><span class="annottext">plusBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#plusBigNat"><span class="hs-identifier hs-var hs-var">plusBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028275"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028275"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028274"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028274"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatAdd"><span class="hs-identifier hs-var">B.bigNatAdd</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028275"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028274"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-239"></span><span>
</span><span id="line-240"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">plusBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatAddWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-241"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#plusBigNatWord"><span class="hs-identifier hs-type">plusBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-242"></span><span id="plusBigNatWord"><span class="annot"><span class="annottext">plusBigNatWord :: BigNat -&gt; Word# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#plusBigNatWord"><span class="hs-identifier hs-var hs-var">plusBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028272"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028272"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028271"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028271"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatAddWord%23"><span class="hs-identifier hs-var">B.bigNatAddWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028272"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028271"><span class="hs-identifier hs-var">w</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-243"></span><span>
</span><span id="line-244"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">minusBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatSub instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-245"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#minusBigNat"><span class="hs-identifier hs-type">minusBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-246"></span><span id="minusBigNat"><span class="annot"><span class="annottext">minusBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#minusBigNat"><span class="hs-identifier hs-var hs-var">minusBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028269"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028269"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028268"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028268"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; (# (# #) | ByteArray# #)
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatSub"><span class="hs-identifier hs-var">B.bigNatSub</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028269"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028268"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-247"></span><span>   </span><span class="hs-special">(#</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">#)</span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ArithException -&gt; BigNat
forall a e. Exception e =&gt; e -&gt; a
</span><a href="../../base/src/GHC.Exception.html#throw"><span class="hs-identifier hs-var">throw</span></a></span><span> </span><span class="annot"><span class="annottext">ArithException
</span><a href="../../base/src/GHC.Exception.Type.html#Underflow"><span class="hs-identifier hs-var">Underflow</span></a></span><span>
</span><span id="line-248"></span><span>   </span><span class="hs-special">(#</span><span>       </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621679028264"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028264"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028264"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-249"></span><span>
</span><span id="line-250"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">minusBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatSubWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-251"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#minusBigNatWord"><span class="hs-identifier hs-type">minusBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-252"></span><span id="minusBigNatWord"><span class="annot"><span class="annottext">minusBigNatWord :: BigNat -&gt; Word# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#minusBigNatWord"><span class="hs-identifier hs-var hs-var">minusBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028263"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028263"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028262"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028262"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; (# (# #) | ByteArray# #)
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatSubWord%23"><span class="hs-identifier hs-var">B.bigNatSubWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028263"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028262"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-253"></span><span>   </span><span class="hs-special">(#</span><span> </span><span class="hs-special">(#</span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">#)</span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ArithException -&gt; BigNat
forall a e. Exception e =&gt; e -&gt; a
</span><a href="../../base/src/GHC.Exception.html#throw"><span class="hs-identifier hs-var">throw</span></a></span><span> </span><span class="annot"><span class="annottext">ArithException
</span><a href="../../base/src/GHC.Exception.Type.html#Underflow"><span class="hs-identifier hs-var">Underflow</span></a></span><span>
</span><span id="line-254"></span><span>   </span><span class="hs-special">(#</span><span>       </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621679028260"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028260"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028260"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-255"></span><span>
</span><span id="line-256"></span><span>
</span><span id="line-257"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">timesBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatMul instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-258"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#timesBigNat"><span class="hs-identifier hs-type">timesBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-259"></span><span id="timesBigNat"><span class="annot"><span class="annottext">timesBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#timesBigNat"><span class="hs-identifier hs-var hs-var">timesBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028259"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028259"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028258"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028258"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatMul"><span class="hs-identifier hs-var">B.bigNatMul</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028259"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028258"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-260"></span><span>
</span><span id="line-261"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">timesBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatMulWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-262"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#timesBigNatWord"><span class="hs-identifier hs-type">timesBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-263"></span><span id="timesBigNatWord"><span class="annot"><span class="annottext">timesBigNatWord :: BigNat -&gt; Word# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#timesBigNatWord"><span class="hs-identifier hs-var hs-var">timesBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028256"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028256"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028255"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028255"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatMulWord%23"><span class="hs-identifier hs-var">B.bigNatMulWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028256"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028255"><span class="hs-identifier hs-var">w</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-264"></span><span>
</span><span id="line-265"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">sqrBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatSqr instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-266"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sqrBigNat"><span class="hs-identifier hs-type">sqrBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-267"></span><span id="sqrBigNat"><span class="annot"><span class="annottext">sqrBigNat :: BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#sqrBigNat"><span class="hs-identifier hs-var hs-var">sqrBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028253"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028253"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatSqr"><span class="hs-identifier hs-var">B.bigNatSqr</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028253"><span class="hs-identifier hs-var">a</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-268"></span><span>
</span><span id="line-269"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">quotRemBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatQuotRem# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-270"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#quotRemBigNat"><span class="hs-identifier hs-type">quotRemBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span class="hs-special">,</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-271"></span><span id="quotRemBigNat"><span class="annot"><span class="annottext">quotRemBigNat :: BigNat -&gt; BigNat -&gt; (# BigNat, BigNat #)
</span><a href="GHC.Integer.GMP.Internals.html#quotRemBigNat"><span class="hs-identifier hs-var hs-var">quotRemBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028251"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028251"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028250"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028250"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; (# ByteArray#, ByteArray# #)
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatQuotRem%23"><span class="hs-identifier hs-var">B.bigNatQuotRem#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028251"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028250"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-272"></span><span>   </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028248"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028248"><span class="hs-identifier hs-var">q</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028247"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028247"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028248"><span class="hs-identifier hs-var">q</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028247"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-273"></span><span>
</span><span id="line-274"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">quotRemBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatQuotRemWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-275"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#quotRemBigNatWord"><span class="hs-identifier hs-type">quotRemBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-276"></span><span id="quotRemBigNatWord"><span class="annot"><span class="annottext">quotRemBigNatWord :: BigNat -&gt; Word# -&gt; (# BigNat, Word# #)
</span><a href="GHC.Integer.GMP.Internals.html#quotRemBigNatWord"><span class="hs-identifier hs-var hs-var">quotRemBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028246"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028246"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028245"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028245"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; (# ByteArray#, Word# #)
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatQuotRemWord%23"><span class="hs-identifier hs-var">B.bigNatQuotRemWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028246"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028245"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-277"></span><span>   </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028243"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028243"><span class="hs-identifier hs-var">q</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028242"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028242"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028243"><span class="hs-identifier hs-var">q</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028242"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-278"></span><span>
</span><span id="line-279"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">quotBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatQuot instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-280"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#quotBigNat"><span class="hs-identifier hs-type">quotBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-281"></span><span id="quotBigNat"><span class="annot"><span class="annottext">quotBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#quotBigNat"><span class="hs-identifier hs-var hs-var">quotBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028241"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028241"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028240"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028240"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatQuot"><span class="hs-identifier hs-var">B.bigNatQuot</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028241"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028240"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-282"></span><span>
</span><span id="line-283"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">quotBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatQuotWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-284"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#quotBigNatWord"><span class="hs-identifier hs-type">quotBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-285"></span><span id="quotBigNatWord"><span class="annot"><span class="annottext">quotBigNatWord :: BigNat -&gt; Word# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#quotBigNatWord"><span class="hs-identifier hs-var hs-var">quotBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028238"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028238"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028237"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028237"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatQuotWord%23"><span class="hs-identifier hs-var">B.bigNatQuotWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028238"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028237"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-286"></span><span>
</span><span id="line-287"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">remBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatRem instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-288"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#remBigNat"><span class="hs-identifier hs-type">remBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-289"></span><span id="remBigNat"><span class="annot"><span class="annottext">remBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#remBigNat"><span class="hs-identifier hs-var hs-var">remBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028235"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028235"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028234"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028234"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatRem"><span class="hs-identifier hs-var">B.bigNatRem</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028235"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028234"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-290"></span><span>
</span><span id="line-291"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">remBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatRemWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-292"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#remBigNatWord"><span class="hs-identifier hs-type">remBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-293"></span><span id="remBigNatWord"><span class="annot"><span class="annottext">remBigNatWord :: BigNat -&gt; Word# -&gt; Word#
</span><a href="GHC.Integer.GMP.Internals.html#remBigNatWord"><span class="hs-identifier hs-var hs-var">remBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028232"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028232"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028231"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028231"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatRemWord%23"><span class="hs-identifier hs-var">B.bigNatRemWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028232"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028231"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-294"></span><span>
</span><span id="line-295"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">gcdBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatGcdWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-296"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gcdBigNatWord"><span class="hs-identifier hs-type">gcdBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-297"></span><span id="gcdBigNatWord"><span class="annot"><span class="annottext">gcdBigNatWord :: BigNat -&gt; Word# -&gt; Word#
</span><a href="GHC.Integer.GMP.Internals.html#gcdBigNatWord"><span class="hs-identifier hs-var hs-var">gcdBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028229"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028229"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028228"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028228"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatGcdWord%23"><span class="hs-identifier hs-var">B.bigNatGcdWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028229"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028228"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-298"></span><span>
</span><span id="line-299"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">gcdBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatGcd instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-300"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gcdBigNat"><span class="hs-identifier hs-type">gcdBigNat</span></a></span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-301"></span><span id="gcdBigNat"><span class="annot"><span class="annottext">gcdBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#gcdBigNat"><span class="hs-identifier hs-var hs-var">gcdBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028226"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028226"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028225"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028225"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatGcd"><span class="hs-identifier hs-var">B.bigNatGcd</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028226"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028225"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-302"></span><span>
</span><span id="line-303"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">shiftRBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatShiftR# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-304"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#shiftRBigNat"><span class="hs-identifier hs-type">shiftRBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-305"></span><span id="shiftRBigNat"><span class="annot"><span class="annottext">shiftRBigNat :: BigNat -&gt; Int# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#shiftRBigNat"><span class="hs-identifier hs-var hs-var">shiftRBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028223"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028223"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028222"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028222"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatShiftR%23"><span class="hs-identifier hs-var">B.bigNatShiftR#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028223"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028222"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-306"></span><span>
</span><span id="line-307"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">shiftLBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatShiftL# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-308"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#shiftLBigNat"><span class="hs-identifier hs-type">shiftLBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-309"></span><span id="shiftLBigNat"><span class="annot"><span class="annottext">shiftLBigNat :: BigNat -&gt; Int# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#shiftLBigNat"><span class="hs-identifier hs-var hs-var">shiftLBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028220"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028220"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028219"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028219"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatShiftL%23"><span class="hs-identifier hs-var">B.bigNatShiftL#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028220"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028219"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-310"></span><span>
</span><span id="line-311"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">testBitBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatTestBit# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-312"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#testBitBigNat"><span class="hs-identifier hs-type">testBitBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-313"></span><span id="testBitBigNat"><span class="annot"><span class="annottext">testBitBigNat :: BigNat -&gt; Int# -&gt; Bool
</span><a href="GHC.Integer.GMP.Internals.html#testBitBigNat"><span class="hs-identifier hs-var hs-var">testBitBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028217"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028217"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028216"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028216"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatTestBit%23"><span class="hs-identifier hs-var">B.bigNatTestBit#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028217"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028216"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-314"></span><span>
</span><span id="line-315"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">clearBitBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatClearBit# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-316"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#clearBitBigNat"><span class="hs-identifier hs-type">clearBitBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-317"></span><span id="clearBitBigNat"><span class="annot"><span class="annottext">clearBitBigNat :: BigNat -&gt; Int# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#clearBitBigNat"><span class="hs-identifier hs-var hs-var">clearBitBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028213"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028213"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028212"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028212"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatClearBit%23"><span class="hs-identifier hs-var">B.bigNatClearBit#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028213"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028212"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-318"></span><span>
</span><span id="line-319"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">complementBitBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatComplementBit# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-320"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#complementBitBigNat"><span class="hs-identifier hs-type">complementBitBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-321"></span><span id="complementBitBigNat"><span class="annot"><span class="annottext">complementBitBigNat :: BigNat -&gt; Int# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#complementBitBigNat"><span class="hs-identifier hs-var hs-var">complementBitBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028210"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028210"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028209"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028209"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatComplementBit%23"><span class="hs-identifier hs-var">B.bigNatComplementBit#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028210"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028209"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-322"></span><span>
</span><span id="line-323"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">setBitBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatSetBit# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-324"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#setBitBigNat"><span class="hs-identifier hs-type">setBitBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-325"></span><span id="setBitBigNat"><span class="annot"><span class="annottext">setBitBigNat :: BigNat -&gt; Int# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#setBitBigNat"><span class="hs-identifier hs-var hs-var">setBitBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028207"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028207"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028206"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028206"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatSetBit%23"><span class="hs-identifier hs-var">B.bigNatSetBit#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028207"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028206"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-326"></span><span>
</span><span id="line-327"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">andBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatAnd instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-328"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#andBigNat"><span class="hs-identifier hs-type">andBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-329"></span><span id="andBigNat"><span class="annot"><span class="annottext">andBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#andBigNat"><span class="hs-identifier hs-var hs-var">andBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028204"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028204"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028203"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028203"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatAnd"><span class="hs-identifier hs-var">B.bigNatAnd</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028204"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028203"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-330"></span><span>
</span><span id="line-331"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">orBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatOr instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-332"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#orBigNat"><span class="hs-identifier hs-type">orBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-333"></span><span id="orBigNat"><span class="annot"><span class="annottext">orBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#orBigNat"><span class="hs-identifier hs-var hs-var">orBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028201"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028201"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028200"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028200"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatOr"><span class="hs-identifier hs-var">B.bigNatOr</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028201"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028200"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-334"></span><span>
</span><span id="line-335"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">xorBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatXor instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-336"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#xorBigNat"><span class="hs-identifier hs-type">xorBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-337"></span><span id="xorBigNat"><span class="annot"><span class="annottext">xorBigNat :: BigNat -&gt; BigNat -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#xorBigNat"><span class="hs-identifier hs-var hs-var">xorBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028198"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028198"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028197"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028197"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatXor"><span class="hs-identifier hs-var">B.bigNatXor</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028198"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028197"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-338"></span><span>
</span><span id="line-339"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">popCountBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatPopCount# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-340"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#popCountBigNat"><span class="hs-identifier hs-type">popCountBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span>
</span><span id="line-341"></span><span id="popCountBigNat"><span class="annot"><span class="annottext">popCountBigNat :: BigNat -&gt; Int#
</span><a href="GHC.Integer.GMP.Internals.html#popCountBigNat"><span class="hs-identifier hs-var hs-var">popCountBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028195"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028195"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatPopCount%23"><span class="hs-identifier hs-var">B.bigNatPopCount#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028195"><span class="hs-identifier hs-var">a</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-342"></span><span>
</span><span id="line-343"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">bitBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatBit# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-344"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bitBigNat"><span class="hs-identifier hs-type">bitBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-345"></span><span id="bitBigNat"><span class="annot"><span class="annottext">bitBigNat :: Int# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#bitBigNat"><span class="hs-identifier hs-var hs-var">bitBigNat</span></a></span></span><span> </span><span id="local-6989586621679028193"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028193"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatBit%23"><span class="hs-identifier hs-var">B.bigNatBit#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028193"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-346"></span><span>
</span><span id="line-347"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">isZeroBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatIsZero instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-348"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#isZeroBigNat"><span class="hs-identifier hs-type">isZeroBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-349"></span><span id="isZeroBigNat"><span class="annot"><span class="annottext">isZeroBigNat :: BigNat -&gt; Bool
</span><a href="GHC.Integer.GMP.Internals.html#isZeroBigNat"><span class="hs-identifier hs-var hs-var">isZeroBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028191"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028191"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Bool
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatIsZero"><span class="hs-identifier hs-var">B.bigNatIsZero</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028191"><span class="hs-identifier hs-var">a</span></a></span><span>
</span><span id="line-350"></span><span>
</span><span id="line-351"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">compareBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatCompare instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-352"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#compareBigNat"><span class="hs-identifier hs-type">compareBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Ordering"><span class="hs-identifier hs-type">Ordering</span></a></span><span>
</span><span id="line-353"></span><span id="compareBigNat"><span class="annot"><span class="annottext">compareBigNat :: BigNat -&gt; BigNat -&gt; Ordering
</span><a href="GHC.Integer.GMP.Internals.html#compareBigNat"><span class="hs-identifier hs-var hs-var">compareBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028189"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028189"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028188"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028188"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; Ordering
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatCompare"><span class="hs-identifier hs-var">B.bigNatCompare</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028189"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028188"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-354"></span><span>
</span><span id="line-355"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">compareBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatCompareWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-356"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#compareBigNatWord"><span class="hs-identifier hs-type">compareBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Ordering"><span class="hs-identifier hs-type">Ordering</span></a></span><span>
</span><span id="line-357"></span><span id="compareBigNatWord"><span class="annot"><span class="annottext">compareBigNatWord :: BigNat -&gt; Word# -&gt; Ordering
</span><a href="GHC.Integer.GMP.Internals.html#compareBigNatWord"><span class="hs-identifier hs-var hs-var">compareBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028186"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028186"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028185"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028185"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; Ordering
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatCompareWord%23"><span class="hs-identifier hs-var">B.bigNatCompareWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028186"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028185"><span class="hs-identifier hs-var">w</span></a></span><span>
</span><span id="line-358"></span><span>
</span><span id="line-359"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">eqBigNatWord</span><span> </span><span class="hs-pragma">&quot;Use bigNatEqWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-360"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#eqBigNatWord"><span class="hs-identifier hs-type">eqBigNatWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-361"></span><span id="eqBigNatWord"><span class="annot"><span class="annottext">eqBigNatWord :: BigNat -&gt; Word# -&gt; Bool
</span><a href="GHC.Integer.GMP.Internals.html#eqBigNatWord"><span class="hs-identifier hs-var hs-var">eqBigNatWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028183"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028183"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028182"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028182"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatEqWord%23"><span class="hs-identifier hs-var">B.bigNatEqWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028183"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028182"><span class="hs-identifier hs-var">w</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-362"></span><span>
</span><span id="line-363"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">eqBigNatWord#</span><span> </span><span class="hs-pragma">&quot;Use bigNatEqWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-364"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#eqBigNatWord%23"><span class="hs-identifier hs-type">eqBigNatWord#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span>
</span><span id="line-365"></span><span id="eqBigNatWord%23"><span class="annot"><span class="annottext">eqBigNatWord# :: BigNat -&gt; Word# -&gt; Int#
</span><a href="GHC.Integer.GMP.Internals.html#eqBigNatWord%23"><span class="hs-identifier hs-var hs-var">eqBigNatWord#</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028180"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028180"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028179"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028179"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatEqWord%23"><span class="hs-identifier hs-var">B.bigNatEqWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028180"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028179"><span class="hs-identifier hs-var">w</span></a></span><span>
</span><span id="line-366"></span><span>
</span><span id="line-367"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">eqBigNat#</span><span> </span><span class="hs-pragma">&quot;Use bigNatEq# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-368"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#eqBigNat%23"><span class="hs-identifier hs-type">eqBigNat#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span>
</span><span id="line-369"></span><span id="eqBigNat%23"><span class="annot"><span class="annottext">eqBigNat# :: BigNat -&gt; BigNat -&gt; Int#
</span><a href="GHC.Integer.GMP.Internals.html#eqBigNat%23"><span class="hs-identifier hs-var hs-var">eqBigNat#</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028178"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028178"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028177"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028177"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatEq%23"><span class="hs-identifier hs-var">B.bigNatEq#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028178"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028177"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-370"></span><span>
</span><span id="line-371"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">eqBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatEq instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-372"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#eqBigNat"><span class="hs-identifier hs-type">eqBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-373"></span><span id="eqBigNat"><span class="annot"><span class="annottext">eqBigNat :: BigNat -&gt; BigNat -&gt; Bool
</span><a href="GHC.Integer.GMP.Internals.html#eqBigNat"><span class="hs-identifier hs-var hs-var">eqBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028175"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028175"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028174"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028174"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; ByteArray# -&gt; Bool
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatEq"><span class="hs-identifier hs-var">B.bigNatEq</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028175"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028174"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-374"></span><span>
</span><span id="line-375"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">gtBigNatWord#</span><span> </span><span class="hs-pragma">&quot;Use bigNatGtWord# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-376"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#gtBigNatWord%23"><span class="hs-identifier hs-type">gtBigNatWord#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span>
</span><span id="line-377"></span><span id="gtBigNatWord%23"><span class="annot"><span class="annottext">gtBigNatWord# :: BigNat -&gt; Word# -&gt; Int#
</span><a href="GHC.Integer.GMP.Internals.html#gtBigNatWord%23"><span class="hs-identifier hs-var hs-var">gtBigNatWord#</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028172"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028172"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028171"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028171"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatGtWord%23"><span class="hs-identifier hs-var">B.bigNatGtWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028172"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028171"><span class="hs-identifier hs-var">w</span></a></span><span>
</span><span id="line-378"></span><span>
</span><span id="line-379"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">sizeInBaseBigNat</span><span> </span><span class="hs-pragma">&quot;Use bigNatSizeInBase# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-380"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sizeInBaseBigNat"><span class="hs-identifier hs-type">sizeInBaseBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-381"></span><span id="sizeInBaseBigNat"><span class="annot"><span class="annottext">sizeInBaseBigNat :: BigNat -&gt; Int# -&gt; Word#
</span><a href="GHC.Integer.GMP.Internals.html#sizeInBaseBigNat"><span class="hs-identifier hs-var hs-var">sizeInBaseBigNat</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028169"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028169"><span class="hs-identifier hs-var">a</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028168"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028168"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; ByteArray# -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatSizeInBase%23"><span class="hs-identifier hs-var">B.bigNatSizeInBase#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028168"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028169"><span class="hs-identifier hs-var">a</span></a></span><span>
</span><span id="line-382"></span><span>
</span><span id="line-383"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">sizeInBaseInteger</span><span> </span><span class="hs-pragma">&quot;Use integerSizeInBase# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-384"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sizeInBaseInteger"><span class="hs-identifier hs-type">sizeInBaseInteger</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-385"></span><span id="sizeInBaseInteger"><span class="annot"><span class="annottext">sizeInBaseInteger :: Integer -&gt; Int# -&gt; Word#
</span><a href="GHC.Integer.GMP.Internals.html#sizeInBaseInteger"><span class="hs-identifier hs-var hs-var">sizeInBaseInteger</span></a></span></span><span> </span><span id="local-6989586621679028166"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028166"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span id="local-6989586621679028165"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028165"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Integer -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerSizeInBase%23"><span class="hs-identifier hs-var">I.integerSizeInBase#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028165"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028166"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-386"></span><span>
</span><span id="line-387"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">sizeInBaseWord#</span><span> </span><span class="hs-pragma">&quot;Use wordSizeInBase# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-388"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#sizeInBaseWord%23"><span class="hs-identifier hs-type">sizeInBaseWord#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-389"></span><span id="sizeInBaseWord%23"><span class="annot"><span class="annottext">sizeInBaseWord# :: Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Integer.GMP.Internals.html#sizeInBaseWord%23"><span class="hs-identifier hs-var hs-var">sizeInBaseWord#</span></a></span></span><span> </span><span id="local-6989586621679028163"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028163"><span class="hs-identifier hs-var">a</span></a></span></span><span> </span><span id="local-6989586621679028162"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028162"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.Primitives.html#wordSizeInBase%23"><span class="hs-identifier hs-var">P.wordSizeInBase#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028162"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028163"><span class="hs-identifier hs-var">a</span></a></span><span>
</span><span id="line-390"></span><span>
</span><span id="line-391"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">importBigNatFromAddr</span><span> </span><span class="hs-pragma">&quot;Use bigNatFromAddr# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-392"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#importBigNatFromAddr"><span class="hs-identifier hs-type">importBigNatFromAddr</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Addr%23"><span class="hs-identifier hs-type">Addr#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-type">IO</span></a></span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-393"></span><span id="importBigNatFromAddr"><span class="annot"><span class="annottext">importBigNatFromAddr :: Addr# -&gt; Word# -&gt; Int# -&gt; IO BigNat
</span><a href="GHC.Integer.GMP.Internals.html#importBigNatFromAddr"><span class="hs-identifier hs-var hs-var">importBigNatFromAddr</span></a></span></span><span> </span><span id="local-6989586621679028160"><span class="annot"><span class="annottext">Addr#
</span><a href="#local-6989586621679028160"><span class="hs-identifier hs-var">addr</span></a></span></span><span> </span><span id="local-6989586621679028159"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028159"><span class="hs-identifier hs-var">sz</span></a></span></span><span> </span><span id="local-6989586621679028158"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028158"><span class="hs-identifier hs-var">endian</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(State# RealWorld -&gt; (# State# RealWorld, BigNat #)) -&gt; IO BigNat
forall a. (State# RealWorld -&gt; (# State# RealWorld, a #)) -&gt; IO a
</span><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-var">IO</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679028157"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028157"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-394"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word#
-&gt; Addr#
-&gt; Int#
-&gt; State# RealWorld
-&gt; (# State# RealWorld, ByteArray# #)
forall s.
Word# -&gt; Addr# -&gt; Int# -&gt; State# s -&gt; (# State# s, ByteArray# #)
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatFromAddr%23"><span class="hs-identifier hs-var">B.bigNatFromAddr#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028159"><span class="hs-identifier hs-var">sz</span></a></span><span> </span><span class="annot"><span class="annottext">Addr#
</span><a href="#local-6989586621679028160"><span class="hs-identifier hs-var">addr</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028158"><span class="hs-identifier hs-var">endian</span></a></span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028157"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-395"></span><span>      </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028155"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028155"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028154"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028154"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028155"><span class="hs-identifier hs-var">s'</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028154"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-396"></span><span>
</span><span id="line-397"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">exportBigNatToAddr</span><span> </span><span class="hs-pragma">&quot;Use bigNatToAddr# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-398"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#exportBigNatToAddr"><span class="hs-identifier hs-type">exportBigNatToAddr</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Addr%23"><span class="hs-identifier hs-type">Addr#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-type">IO</span></a></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span>
</span><span id="line-399"></span><span id="exportBigNatToAddr"><span class="annot"><span class="annottext">exportBigNatToAddr :: BigNat -&gt; Addr# -&gt; Int# -&gt; IO Word
</span><a href="GHC.Integer.GMP.Internals.html#exportBigNatToAddr"><span class="hs-identifier hs-var hs-var">exportBigNatToAddr</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028153"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028153"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028152"><span class="annot"><span class="annottext">Addr#
</span><a href="#local-6989586621679028152"><span class="hs-identifier hs-var">addr</span></a></span></span><span> </span><span id="local-6989586621679028151"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028151"><span class="hs-identifier hs-var">endian</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(State# RealWorld -&gt; (# State# RealWorld, Word #)) -&gt; IO Word
forall a. (State# RealWorld -&gt; (# State# RealWorld, a #)) -&gt; IO a
</span><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-var">IO</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679028150"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028150"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-400"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">ByteArray#
-&gt; Addr#
-&gt; Int#
-&gt; State# RealWorld
-&gt; (# State# RealWorld, Word# #)
forall s.
ByteArray# -&gt; Addr# -&gt; Int# -&gt; State# s -&gt; (# State# s, Word# #)
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatToAddr%23"><span class="hs-identifier hs-var">B.bigNatToAddr#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028153"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="annot"><span class="annottext">Addr#
</span><a href="#local-6989586621679028152"><span class="hs-identifier hs-var">addr</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028151"><span class="hs-identifier hs-var">endian</span></a></span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028150"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-401"></span><span>      </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028148"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028148"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028147"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028147"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028148"><span class="hs-identifier hs-var">s'</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word
</span><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-identifier hs-var">W#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028147"><span class="hs-identifier hs-var">w</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-402"></span><span>
</span><span id="line-403"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">importIntegerFromAddr</span><span> </span><span class="hs-pragma">&quot;Use integerFromAddr# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-404"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#importIntegerFromAddr"><span class="hs-identifier hs-type">importIntegerFromAddr</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Addr%23"><span class="hs-identifier hs-type">Addr#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-type">IO</span></a></span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-405"></span><span id="importIntegerFromAddr"><span class="annot"><span class="annottext">importIntegerFromAddr :: Addr# -&gt; Word# -&gt; Int# -&gt; IO Integer
</span><a href="GHC.Integer.GMP.Internals.html#importIntegerFromAddr"><span class="hs-identifier hs-var hs-var">importIntegerFromAddr</span></a></span></span><span> </span><span id="local-6989586621679028146"><span class="annot"><span class="annottext">Addr#
</span><a href="#local-6989586621679028146"><span class="hs-identifier hs-var">addr</span></a></span></span><span> </span><span id="local-6989586621679028145"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028145"><span class="hs-identifier hs-var">sz</span></a></span></span><span> </span><span id="local-6989586621679028144"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028144"><span class="hs-identifier hs-var">endian</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(State# RealWorld -&gt; (# State# RealWorld, Integer #)) -&gt; IO Integer
forall a. (State# RealWorld -&gt; (# State# RealWorld, a #)) -&gt; IO a
</span><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-var">IO</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679028143"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028143"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-406"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word#
-&gt; Addr#
-&gt; Int#
-&gt; State# RealWorld
-&gt; (# State# RealWorld, Integer #)
forall s.
Word# -&gt; Addr# -&gt; Int# -&gt; State# s -&gt; (# State# s, Integer #)
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerFromAddr%23"><span class="hs-identifier hs-var">I.integerFromAddr#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028145"><span class="hs-identifier hs-var">sz</span></a></span><span> </span><span class="annot"><span class="annottext">Addr#
</span><a href="#local-6989586621679028146"><span class="hs-identifier hs-var">addr</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028144"><span class="hs-identifier hs-var">endian</span></a></span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028143"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-407"></span><span>      </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028141"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028141"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028140"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028140"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028141"><span class="hs-identifier hs-var">s'</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028140"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-408"></span><span>
</span><span id="line-409"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">exportIntegerToAddr</span><span> </span><span class="hs-pragma">&quot;Use integerToAddr# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-410"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#exportIntegerToAddr"><span class="hs-identifier hs-type">exportIntegerToAddr</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Addr%23"><span class="hs-identifier hs-type">Addr#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-type">IO</span></a></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span>
</span><span id="line-411"></span><span id="exportIntegerToAddr"><span class="annot"><span class="annottext">exportIntegerToAddr :: Integer -&gt; Addr# -&gt; Int# -&gt; IO Word
</span><a href="GHC.Integer.GMP.Internals.html#exportIntegerToAddr"><span class="hs-identifier hs-var hs-var">exportIntegerToAddr</span></a></span></span><span> </span><span id="local-6989586621679028139"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028139"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span id="local-6989586621679028138"><span class="annot"><span class="annottext">Addr#
</span><a href="#local-6989586621679028138"><span class="hs-identifier hs-var">addr</span></a></span></span><span> </span><span id="local-6989586621679028137"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028137"><span class="hs-identifier hs-var">endian</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(State# RealWorld -&gt; (# State# RealWorld, Word #)) -&gt; IO Word
forall a. (State# RealWorld -&gt; (# State# RealWorld, a #)) -&gt; IO a
</span><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-var">IO</span></a></span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679028136"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028136"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-412"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Integer
-&gt; Addr#
-&gt; Int#
-&gt; State# RealWorld
-&gt; (# State# RealWorld, Word# #)
forall s.
Integer -&gt; Addr# -&gt; Int# -&gt; State# s -&gt; (# State# s, Word# #)
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerToAddr%23"><span class="hs-identifier hs-var">I.integerToAddr#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028139"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Addr#
</span><a href="#local-6989586621679028138"><span class="hs-identifier hs-var">addr</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028137"><span class="hs-identifier hs-var">endian</span></a></span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028136"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-413"></span><span>      </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028134"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028134"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028133"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028133"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028134"><span class="hs-identifier hs-var">s'</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word
</span><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-identifier hs-var">W#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028133"><span class="hs-identifier hs-var">w</span></a></span><span> </span><span class="hs-special">#)</span><span>
</span><span id="line-414"></span><span>
</span><span id="line-415"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#wordToBigNat"><span class="hs-identifier hs-type">wordToBigNat</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-416"></span><span id="wordToBigNat"><span class="annot"><span class="annottext">wordToBigNat :: Word# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#wordToBigNat"><span class="hs-identifier hs-var hs-var">wordToBigNat</span></a></span></span><span> </span><span id="local-6989586621679028132"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028132"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatFromWord%23"><span class="hs-identifier hs-var">B.bigNatFromWord#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028132"><span class="hs-identifier hs-var">w</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-417"></span><span>
</span><span id="line-418"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#wordToBigNat2"><span class="hs-identifier hs-type">wordToBigNat2</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-419"></span><span id="wordToBigNat2"><span class="annot"><span class="annottext">wordToBigNat2 :: Word# -&gt; Word# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#wordToBigNat2"><span class="hs-identifier hs-var hs-var">wordToBigNat2</span></a></span></span><span> </span><span id="local-6989586621679028130"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028130"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span id="local-6989586621679028129"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028129"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; ByteArray#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatFromWord2%23"><span class="hs-identifier hs-var">B.bigNatFromWord2#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028130"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028129"><span class="hs-identifier hs-var">l</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-420"></span><span>
</span><span id="line-421"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bigNatToInt"><span class="hs-identifier hs-type">bigNatToInt</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span>
</span><span id="line-422"></span><span id="bigNatToInt"><span class="annot"><span class="annottext">bigNatToInt :: BigNat -&gt; Int#
</span><a href="GHC.Integer.GMP.Internals.html#bigNatToInt"><span class="hs-identifier hs-var hs-var">bigNatToInt</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028127"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028127"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Int#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatToInt%23"><span class="hs-identifier hs-var">B.bigNatToInt#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028127"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-423"></span><span>
</span><span id="line-424"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#bigNatToWord"><span class="hs-identifier hs-type">bigNatToWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-425"></span><span id="bigNatToWord"><span class="annot"><span class="annottext">bigNatToWord :: BigNat -&gt; Word#
</span><a href="GHC.Integer.GMP.Internals.html#bigNatToWord"><span class="hs-identifier hs-var hs-var">bigNatToWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028125"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028125"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatToWord%23"><span class="hs-identifier hs-var">B.bigNatToWord#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028125"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-426"></span><span>
</span><span id="line-427"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">indexBigNat#</span><span> </span><span class="hs-pragma">&quot;Use bigNatIndex# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-428"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#indexBigNat%23"><span class="hs-identifier hs-type">indexBigNat#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpSize%23"><span class="hs-identifier hs-type">GmpSize#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpLimb%23"><span class="hs-identifier hs-type">GmpLimb#</span></a></span><span>
</span><span id="line-429"></span><span id="indexBigNat%23"><span class="annot"><span class="annottext">indexBigNat# :: BigNat -&gt; Int# -&gt; Word#
</span><a href="GHC.Integer.GMP.Internals.html#indexBigNat%23"><span class="hs-identifier hs-var hs-var">indexBigNat#</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028123"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028123"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028122"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028122"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatIndex%23"><span class="hs-identifier hs-var">B.bigNatIndex#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028123"><span class="hs-identifier hs-var">b</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028122"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-430"></span><span>
</span><span id="line-431"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">importBigNatFromByteArray</span><span> </span><span class="hs-pragma">&quot;Use bigNatFromByteArray# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-432"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#importBigNatFromByteArray"><span class="hs-identifier hs-type">importBigNatFromByteArray</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#ByteArray%23"><span class="hs-identifier hs-type">ByteArray#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-433"></span><span id="importBigNatFromByteArray"><span class="annot"><span class="annottext">importBigNatFromByteArray :: ByteArray# -&gt; Word# -&gt; Word# -&gt; Int# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#importBigNatFromByteArray"><span class="hs-identifier hs-var hs-var">importBigNatFromByteArray</span></a></span></span><span> </span><span id="local-6989586621679028120"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028120"><span class="hs-identifier hs-var">ba</span></a></span></span><span> </span><span id="local-6989586621679028119"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028119"><span class="hs-identifier hs-var">off</span></a></span></span><span> </span><span id="local-6989586621679028118"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028118"><span class="hs-identifier hs-var">sz</span></a></span></span><span> </span><span id="local-6989586621679028117"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028117"><span class="hs-identifier hs-var">endian</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">(State# RealWorld -&gt; (# State# RealWorld, ByteArray# #))
-&gt; (# State# RealWorld, ByteArray# #)
forall o. (State# RealWorld -&gt; o) -&gt; o
</span><a href="../../ghc-prim/src/GHC.Magic.html#runRW%23"><span class="hs-identifier hs-var">runRW#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
-&gt; ByteArray#
-&gt; Word#
-&gt; Int#
-&gt; State# RealWorld
-&gt; (# State# RealWorld, ByteArray# #)
forall s.
Word#
-&gt; ByteArray#
-&gt; Word#
-&gt; Int#
-&gt; State# s
-&gt; (# State# s, ByteArray# #)
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatFromByteArray%23"><span class="hs-identifier hs-var">B.bigNatFromByteArray#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028118"><span class="hs-identifier hs-var">sz</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028120"><span class="hs-identifier hs-var">ba</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028119"><span class="hs-identifier hs-var">off</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028117"><span class="hs-identifier hs-var">endian</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-434"></span><span>   </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><span class="hs-identifier">_</span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028115"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028115"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-var">BN#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028115"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-435"></span><span>
</span><span id="line-436"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">exportBigNatToMutableByteArray</span><span> </span><span class="hs-pragma">&quot;Use bigNatToMutableByteArray# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-437"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#exportBigNatToMutableByteArray"><span class="hs-identifier hs-type">exportBigNatToMutableByteArray</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#MutableByteArray%23"><span class="hs-identifier hs-type">MutableByteArray#</span></a></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#RealWorld"><span class="hs-identifier hs-type">RealWorld</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-type">IO</span></a></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span>
</span><span id="line-438"></span><span id="exportBigNatToMutableByteArray"><span class="annot"><span class="annottext">exportBigNatToMutableByteArray :: BigNat -&gt; MutableByteArray# RealWorld -&gt; Word# -&gt; Int# -&gt; IO Word
</span><a href="GHC.Integer.GMP.Internals.html#exportBigNatToMutableByteArray"><span class="hs-identifier hs-var hs-var">exportBigNatToMutableByteArray</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BN%23"><span class="hs-identifier hs-type">BN#</span></a></span><span> </span><span id="local-6989586621679028114"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028114"><span class="hs-identifier hs-var">ba</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679028113"><span class="annot"><span class="annottext">MutableByteArray# RealWorld
</span><a href="#local-6989586621679028113"><span class="hs-identifier hs-var">mba</span></a></span></span><span> </span><span id="local-6989586621679028112"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028112"><span class="hs-identifier hs-var">off</span></a></span></span><span> </span><span id="local-6989586621679028111"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028111"><span class="hs-identifier hs-var">endian</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(State# RealWorld -&gt; (# State# RealWorld, Word #)) -&gt; IO Word
forall a. (State# RealWorld -&gt; (# State# RealWorld, a #)) -&gt; IO a
</span><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-var">IO</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span id="local-6989586621679028110"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028110"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">ByteArray#
-&gt; MutableByteArray# RealWorld
-&gt; Word#
-&gt; Int#
-&gt; State# RealWorld
-&gt; (# State# RealWorld, Word# #)
forall s.
ByteArray#
-&gt; MutableByteArray# s
-&gt; Word#
-&gt; Int#
-&gt; State# s
-&gt; (# State# s, Word# #)
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatToMutableByteArray%23"><span class="hs-identifier hs-var">B.bigNatToMutableByteArray#</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028114"><span class="hs-identifier hs-var">ba</span></a></span><span> </span><span class="annot"><span class="annottext">MutableByteArray# RealWorld
</span><a href="#local-6989586621679028113"><span class="hs-identifier hs-var">mba</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028112"><span class="hs-identifier hs-var">off</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028111"><span class="hs-identifier hs-var">endian</span></a></span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028110"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-439"></span><span>   </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028108"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028108"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028107"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028107"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028108"><span class="hs-identifier hs-var">s'</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word
</span><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-identifier hs-var">W#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028107"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="hs-special">#)</span><span class="hs-special">)</span><span>
</span><span id="line-440"></span><span>
</span><span id="line-441"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">importIntegerFromByteArray</span><span> </span><span class="hs-pragma">&quot;Use integerFromByteArray# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-442"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#importIntegerFromByteArray"><span class="hs-identifier hs-type">importIntegerFromByteArray</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#ByteArray%23"><span class="hs-identifier hs-type">ByteArray#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span>
</span><span id="line-443"></span><span id="importIntegerFromByteArray"><span class="annot"><span class="annottext">importIntegerFromByteArray :: ByteArray# -&gt; Word# -&gt; Word# -&gt; Int# -&gt; Integer
</span><a href="GHC.Integer.GMP.Internals.html#importIntegerFromByteArray"><span class="hs-identifier hs-var hs-var">importIntegerFromByteArray</span></a></span></span><span> </span><span id="local-6989586621679028106"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028106"><span class="hs-identifier hs-var">ba</span></a></span></span><span> </span><span id="local-6989586621679028105"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028105"><span class="hs-identifier hs-var">off</span></a></span></span><span> </span><span id="local-6989586621679028104"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028104"><span class="hs-identifier hs-var">sz</span></a></span></span><span> </span><span id="local-6989586621679028103"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028103"><span class="hs-identifier hs-var">endian</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">(State# RealWorld -&gt; (# State# RealWorld, Integer #))
-&gt; (# State# RealWorld, Integer #)
forall o. (State# RealWorld -&gt; o) -&gt; o
</span><a href="../../ghc-prim/src/GHC.Magic.html#runRW%23"><span class="hs-identifier hs-var">runRW#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
-&gt; ByteArray#
-&gt; Word#
-&gt; Int#
-&gt; State# RealWorld
-&gt; (# State# RealWorld, Integer #)
forall s.
Word#
-&gt; ByteArray#
-&gt; Word#
-&gt; Int#
-&gt; State# s
-&gt; (# State# s, Integer #)
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerFromByteArray%23"><span class="hs-identifier hs-var">I.integerFromByteArray#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028104"><span class="hs-identifier hs-var">sz</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028106"><span class="hs-identifier hs-var">ba</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028105"><span class="hs-identifier hs-var">off</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028103"><span class="hs-identifier hs-var">endian</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-444"></span><span>   </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><span class="hs-identifier">_</span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028101"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028101"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028101"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-445"></span><span>
</span><span id="line-446"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">exportIntegerToMutableByteArray</span><span> </span><span class="hs-pragma">&quot;Use integerToMutableByteArray# instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-447"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#exportIntegerToMutableByteArray"><span class="hs-identifier hs-type">exportIntegerToMutableByteArray</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-identifier hs-type">Integer</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#MutableByteArray%23"><span class="hs-identifier hs-type">MutableByteArray#</span></a></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#RealWorld"><span class="hs-identifier hs-type">RealWorld</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-type">IO</span></a></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span>
</span><span id="line-448"></span><span id="exportIntegerToMutableByteArray"><span class="annot"><span class="annottext">exportIntegerToMutableByteArray :: Integer -&gt; MutableByteArray# RealWorld -&gt; Word# -&gt; Int# -&gt; IO Word
</span><a href="GHC.Integer.GMP.Internals.html#exportIntegerToMutableByteArray"><span class="hs-identifier hs-var hs-var">exportIntegerToMutableByteArray</span></a></span></span><span> </span><span id="local-6989586621679028100"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028100"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span id="local-6989586621679028099"><span class="annot"><span class="annottext">MutableByteArray# RealWorld
</span><a href="#local-6989586621679028099"><span class="hs-identifier hs-var">mba</span></a></span></span><span> </span><span id="local-6989586621679028098"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028098"><span class="hs-identifier hs-var">off</span></a></span></span><span> </span><span id="local-6989586621679028097"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028097"><span class="hs-identifier hs-var">endian</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(State# RealWorld -&gt; (# State# RealWorld, Word #)) -&gt; IO Word
forall a. (State# RealWorld -&gt; (# State# RealWorld, a #)) -&gt; IO a
</span><a href="../../ghc-prim/src/GHC.Types.html#IO"><span class="hs-identifier hs-var">IO</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span id="local-6989586621679028096"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028096"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Integer
-&gt; MutableByteArray# RealWorld
-&gt; Word#
-&gt; Int#
-&gt; State# RealWorld
-&gt; (# State# RealWorld, Word# #)
forall s.
Integer
-&gt; MutableByteArray# s
-&gt; Word#
-&gt; Int#
-&gt; State# s
-&gt; (# State# s, Word# #)
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerToMutableByteArray%23"><span class="hs-identifier hs-var">I.integerToMutableByteArray#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679028100"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">MutableByteArray# RealWorld
</span><a href="#local-6989586621679028099"><span class="hs-identifier hs-var">mba</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028098"><span class="hs-identifier hs-var">off</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028097"><span class="hs-identifier hs-var">endian</span></a></span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028096"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-449"></span><span>   </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679028094"><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028094"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679028093"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028093"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(#</span><span> </span><span class="annot"><span class="annottext">State# RealWorld
</span><a href="#local-6989586621679028094"><span class="hs-identifier hs-var">s'</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word
</span><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-identifier hs-var">W#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679028093"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="hs-special">#)</span><span class="hs-special">)</span><span>
</span><span id="line-450"></span><span>
</span><span id="line-451"></span><span>
</span><span id="line-452"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">byteArrayToBigNat#</span><span> </span><span class="hs-pragma">&quot;Use bigNatFromWordArray instead&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-453"></span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#byteArrayToBigNat%23"><span class="hs-identifier hs-type">byteArrayToBigNat#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#ByteArray%23"><span class="hs-identifier hs-type">ByteArray#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Integer.GMP.Internals.html#GmpSize%23"><span class="hs-identifier hs-type">GmpSize#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#BigNat"><span class="hs-identifier hs-type">BigNat</span></a></span><span>
</span><span id="line-454"></span><span id="byteArrayToBigNat%23"><span class="annot"><span class="annottext">byteArrayToBigNat# :: ByteArray# -&gt; Int# -&gt; BigNat
</span><a href="GHC.Integer.GMP.Internals.html#byteArrayToBigNat%23"><span class="hs-identifier hs-var hs-var">byteArrayToBigNat#</span></a></span></span><span> </span><span id="local-6989586621679028092"><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028092"><span class="hs-identifier hs-var">ba</span></a></span></span><span> </span><span id="local-6989586621679028091"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028091"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ByteArray# -&gt; Word# -&gt; BigNat
</span><a href="../../ghc-bignum/src/GHC.Num.BigNat.html#bigNatFromWordArray"><span class="hs-identifier hs-var">B.bigNatFromWordArray</span></a></span><span> </span><span class="annot"><span class="annottext">ByteArray#
</span><a href="#local-6989586621679028092"><span class="hs-identifier hs-var">ba</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679028091"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-455"></span></pre></body></html>